import request from "@/utils/request";

// 所有攻略
const getAllGuides = () => {
    return request({
        url: `/api/travel-guide/all`,
        method: 'post',
        data:{}
        // headers: { 'Content-Type': 'application/json;charset=utf-8' }
    });
};

// 删除攻略
const deleteGuide = (id) => {
    return request({
        url: `/api/travel-guide/delete/${id}`,
        method: 'delete',
        data:{}
        // headers: { 'Content-Type': 'application/json;charset=utf-8' }
    });
};
// 删除攻略
const updateGuide = (data) => {
    return request({
        url: `/api/travel-guide/update/`,
        method: 'put',
        data:{
            guide:data
        }
        // headers: { 'Content-Type': 'application/json;charset=utf-8' }
    });
};


export { getAllGuides,deleteGuide,updateGuide};
